Optimal. Leaf size=287 \[ \frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}+\frac {i b p q \text {Li}_2\left (-\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {i b p q \text {Li}_2\left (-\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.68, antiderivative size = 287, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 8, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {222, 2452,
4825, 4617, 2221, 2317, 2438, 2495} \begin {gather*} \frac {i b p q \text {PolyLog}\left (2,-\frac {2 f e^{i \text {ArcSin}\left (\frac {h x}{2}\right )}}{-\sqrt {4 f^2-e^2 h^2}+i e h}\right )}{h}+\frac {i b p q \text {PolyLog}\left (2,-\frac {2 f e^{i \text {ArcSin}\left (\frac {h x}{2}\right )}}{\sqrt {4 f^2-e^2 h^2}+i e h}\right )}{h}+\frac {\text {ArcSin}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}-\frac {b p q \text {ArcSin}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 f e^{i \text {ArcSin}\left (\frac {h x}{2}\right )}}{-\sqrt {4 f^2-e^2 h^2}+i e h}\right )}{h}-\frac {b p q \text {ArcSin}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 f e^{i \text {ArcSin}\left (\frac {h x}{2}\right )}}{\sqrt {4 f^2-e^2 h^2}+i e h}\right )}{h}+\frac {i b p q \text {ArcSin}\left (\frac {h x}{2}\right )^2}{2 h} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 2221
Rule 2317
Rule 2438
Rule 2452
Rule 2495
Rule 4617
Rule 4825
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{\sqrt {2-h x} \sqrt {2+h x}} \, dx &=\text {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{\sqrt {2-h x} \sqrt {2+h x}} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}-\text {Subst}\left ((b f p q) \int \frac {\sin ^{-1}\left (\frac {h x}{2}\right )}{e h+f h x} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}-\text {Subst}\left ((b f p q) \text {Subst}\left (\int \frac {x \cos (x)}{\frac {e h^2}{2}+f h \sin (x)} \, dx,x,\sin ^{-1}\left (\frac {h x}{2}\right )\right ),c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}+\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}-\text {Subst}\left ((i b f p q) \text {Subst}\left (\int \frac {e^{i x} x}{e^{i x} f h+\frac {1}{2} i e h^2-\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}} \, dx,x,\sin ^{-1}\left (\frac {h x}{2}\right )\right ),c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left ((i b f p q) \text {Subst}\left (\int \frac {e^{i x} x}{e^{i x} f h+\frac {1}{2} i e h^2+\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}} \, dx,x,\sin ^{-1}\left (\frac {h x}{2}\right )\right ),c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}+\text {Subst}\left (\frac {(b p q) \text {Subst}\left (\int \log \left (1+\frac {e^{i x} f h}{\frac {1}{2} i e h^2-\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right ) \, dx,x,\sin ^{-1}\left (\frac {h x}{2}\right )\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b p q) \text {Subst}\left (\int \log \left (1+\frac {e^{i x} f h}{\frac {1}{2} i e h^2+\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right ) \, dx,x,\sin ^{-1}\left (\frac {h x}{2}\right )\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}-\text {Subst}\left (\frac {(i b p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {f h x}{\frac {1}{2} i e h^2-\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right )}{x} \, dx,x,e^{i \sin ^{-1}\left (\frac {h x}{2}\right )}\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(i b p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {f h x}{\frac {1}{2} i e h^2+\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right )}{x} \, dx,x,e^{i \sin ^{-1}\left (\frac {h x}{2}\right )}\right )}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {\sin ^{-1}\left (\frac {h x}{2}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h}+\frac {i b p q \text {Li}_2\left (-\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h-\sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {i b p q \text {Li}_2\left (-\frac {2 e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{i e h+\sqrt {4 f^2-e^2 h^2}}\right )}{h}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 316, normalized size = 1.10 \begin {gather*} \frac {a \sin ^{-1}\left (\frac {h x}{2}\right )}{h}+\frac {i b p q \sin ^{-1}\left (\frac {h x}{2}\right )^2}{2 h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f h}{\frac {1}{2} i e h^2-\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right )}{h}-\frac {b p q \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (1+\frac {e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f h}{\frac {1}{2} i e h^2+\frac {1}{2} h \sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {b \sin ^{-1}\left (\frac {h x}{2}\right ) \log \left (c \left (d (e+f x)^p\right )^q\right )}{h}+\frac {i b p q \text {Li}_2\left (\frac {2 i e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{e h-i \sqrt {4 f^2-e^2 h^2}}\right )}{h}+\frac {i b p q \text {Li}_2\left (\frac {2 i e^{i \sin ^{-1}\left (\frac {h x}{2}\right )} f}{e h+i \sqrt {4 f^2-e^2 h^2}}\right )}{h} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.34, size = 0, normalized size = 0.00 \[\int \frac {a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )}{\sqrt {-h x +2}\, \sqrt {h x +2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{\sqrt {- h x + 2} \sqrt {h x + 2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{\sqrt {2-h\,x}\,\sqrt {h\,x+2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________